home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / yatsee11.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1997-05-15  |  1KB  |  45 lines

  1. /* Create an icon for YATSEE on the desktop  */
  2. /* If you already have an icon for TRIPLES   */
  3. /* please delete this icon before calling*/
  4. /* this program                          */
  5.  
  6. call RxFuncAdd "SysLoadFuncs","REXXUTIL","SysLoadFuncs"
  7. call SysLoadFuncs
  8.  
  9. say "                             Yatsee 1.1"
  10. say ""
  11. say "The installation program will create an icon for Yatsee on the desktop"
  12. say ""
  13. say "Continue?"
  14. say "(Y/N)"
  15.  
  16. PARSE PULL reply
  17. If reply = "N" | reply = "n" then exit
  18.  
  19. title="Yatsee"
  20. classname='WPProgram'
  21. location='<WP_DESKTOP>'
  22. curdir=directory()
  23. result=SysCreateObject(classname,title,location,'PROGTYPE=PM;EXENAME='curdir'\yatsee.exe;')
  24.  
  25.  
  26. If result then
  27.    say "Icon for Yatsee 1.1 created..."
  28. else do
  29.    say "ERROR              : The objects have not been installed,due to an error."
  30.    say "POSSIBLE CAUSE     : The objects already exist on the desktop."
  31.    say "ACTION             : Remove the already existing objects and try again."
  32.    pull key
  33. end
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.